!!! 5
html(lang="en")
	head
		meta(charset='UTF-8')
		title= 'Rush Lambda Chi Alpha: ' + title
		link(rel='stylesheet',type='text/css',href='/static/style/main.css')
		script(type='text/javascript',src='/static/script/jquery-1.6.4.js')
		script(type='text/javascript',src='/static/script/jquery.cycle.all.latest.js')
		script(type='text/javascript',src='/static/script/rush.js')
	body
		#fb-root
		#user
			-if(typeof(user) == 'undefined')
				#userClick
					fb:login-button(data-perms='email,publish_checkins') Sign In with Facebook
			-else
				a#userClick.link(href='javascript:void()')
					img#fbConnected(src='/static/image/facebook.png', height='14', style='display: none')
					span(style='padding: 8px;')= user.firstName + ' ' + user.lastName
					img(src='/static/profile/' + user._id + '.jpg', height='24')
				#userInfo
					img(src='/static/profile/' + user._id + '.jpg', style='display: inline-block;', width='96')
					ul(style='display: inline-block; width: 224px;')
						li.neutral
							h4= user.firstName + ' ' + user.lastName
							div= user.email
						li.neutral.link(onclick='window.location=\'/users/' + user._id + '\'') Edit Profile
						li.neutral.link(onclick="logout();") Sign Out
		div(style='height: 48px; display: block') &nbsp;
		#head
			img(src='/static/image/coatofarms.png', height='96')
			h1 Rush Pi Zeta&nbsp;
			h2 Lambda Chi Alpha @ WPI
		#navigation
			ul
				li.neutral
					h3 Navigation
				li.neutral.link(onclick='window.location=\'/\'') Home
				li.neutral.link(onclick='window.location=\'/events\'') Events
				-if(typeof(user) != 'undefined') // Restricted Pages
					-if(/Member|Administrator/i.test(user.type)) // Members+Admins
						li.neutral.link(onclick='window.location=\'/comms\'') Communication
						li.neutral.link(onclick='window.location=\'/rushees\'') Rushees
					-if(/Member/i.test(user.type)) // Members only
						
					-if(/Administrator/i.test(user.type)) // Admins only
						li.neutral.link(onclick='window.location=\'/checkin\'') Check-In
						li.neutral.link(onclick='window.location=\'/users\'') Users
		#page!= body
		#buffer(style='height: 64px; display: block;') &nbsp;
		
